<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'questionDetails.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<SCRIPT src="js/color.js" type="text/javascript"></SCRIPT>

	</head>

	<body>
		<center>
			<table width="535" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#9BC8EB">
				<tr>
					<td width="94" height="28" align="right" bgcolor="#F6F9FB"
						class="jj_r_5">
						姓名：
					</td>
					<td width="89" height="28" bgcolor="#FFFFFF" class="jj_l_5">
						${question.uname}
					</td>
					<td width="54" height="28" align="right" bgcolor="#F6F9FB"
						class="jj_r_5">
						邮箱：
					</td>
					<td width="113" height="28" bgcolor="#FFFFFF" class="jj_l_5">
						${question.qemail}
					</td>
					<td width="73" height="28" align="right" bgcolor="#F6F9FB"
						class="jj_r_5">
						提交时间：
					</td>
					<td width="105" height="28" bgcolor="#FFFFFF" class="jj_l_5">
						${question.qtime}
					</td>
				</tr>
				<tr>
					<td height="28" align="right" bgcolor="#F6F9FB" class="jj_r_5">
						标题：
					</td>
					<td height="28" colspan="5" bgcolor="#FFFFFF" class="jj_l_5">
						${question.qtitle}
					</td>
				</tr>
				<tr>
					<td height="71" align="right" valign="middle" bgcolor="#F6F9FB"
						class="jj_r_5">
						内容：
					</td>
					<td height="71" colspan="5" valign="middle" bgcolor="#FFFFFF"
						class="jj_l_5">
						<table width="99%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="left" valign="top">
									${question.qinfo}
									<br />
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<c:forEach items="${answer}" var="list">
					<tr>
						<td height="28" align="right" bgcolor="#F6F9FB" class="jj_r_5">
							<font color="#1F7EB5">回复人：</font>
						</td>
						<td height="28" colspan="3" bgcolor="#FFFFFF" class="jj_l_5">
							&nbsp;${list.a_doctor}
						</td>
						<td height="28" align="right" bgcolor="#F6F9FB" class="jj_r_5">
							<font color="#1F7EB5">回复时间：</font>
						</td>
						<td height="28" bgcolor="#FFFFFF" class="jj_l_5">
							${list.a_time}
						</td>
					</tr>
					<tr align="left">
						<td height="47" colspan="6" align="center" valign="middle"
							bgcolor="#FFFFFF">
							<table width="511" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td align="left" valign="top" class="hg_18">
										&nbsp;&nbsp;&nbsp; ${list.a_answer}
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</c:forEach>
			</table>
			<br/>
			<table width="55%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="STYLE4">
						&nbsp;&nbsp;共有 ${rowCount} 条记录，当前第 ${current}/${pageCount} 页
					</td>
					<td>
						<form action="question.do?method=details&qid=${qid}&admin=wel"
							method="post">
							<table border="0" align="right" cellpadding="0" cellspacing="0">
								<tr>
									<td width="40">
										<a
											href="question.do?method=details&qid=${qid}&admin=wel&current=1">
											<img src="backstage/tab/images/first.gif" width="37"
												height="15" border="0" /> </a>
									</td>
									<td width="45">
										<a
											href="question.do?method=details&qid=${qid}&admin=wel&current=${current-1}">
											<img src="backstage/tab/images/back.gif" width="43"
												height="15" border="0" /> </a>
									</td>
									<td width="45">
										<a
											href="question.do?method=details&qid=${qid}&admin=wel&current=${current+1}">
											<img src="backstage/tab/images/next.gif" width="43"
												height="15" border="0" /> </a>
									</td>
									<td width="40">
										<a
											href="question.do?method=details&qid=${qid}&admin=wel&current=${pageCount}">
											<img src="backstage/tab/images/last.gif" width="37"
												height="15" border="0" /> </a>
									</td>

									<td width="100">
										<div align="center">
											<span class="STYLE1">转到第 <input name="current"
													type="text" size="4"
													onkeypress="if ((event.keyCode<48 || event.keyCode>57)) {event.returnValue=false};
															if(this.value.length > 4){this.value = 10000}"
													style="height: 12px; width: 20px; border: 1px solid #999999;" />
												页 </span>
										</div>
									</td>
									<td width="40">
										<img src="backstage/tab/images/go.gif" width="37" height="15"
											onclick="submit()" />
									</td>
								</tr>
							</table>
						</form>
					</td>
				</tr>
			</table>
		</center>
	</body>
</html>
